import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from '../views/Login'
import GeneralInfo from '../generalUser/generalInfo'
import myApply from '../generalUser/myApply'
import contract from '../generalUser/contract'
import Manage from '../agent/manage'
import User from '../agent/user'
import agentApply from '../agent/agentApply'
import depChange from '../Agent-demo/depChange'
import depAdd from '../Agent-demo/depAdd'
import depAgentApply from '../Agent-demo/depAgentApply'
import coChange from '../Agent-demo/coChange'
import coAdd from '../Agent-demo/coAdd'
import coContract from '../Agent-demo/coContract'
import coAgentApply from '../Agent-demo/coAgentApply'
import adminLogin from '../views/adminLogin'
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    // component: adminLogin
    component: Login,
    redirect: '/login'
  },
  {
    path: '/login',
    component: Login
  },
  {
    path: '/generalInfo',
    component: GeneralInfo
  },
  {
    path: '/myApply',
    component: myApply
  },
  {
    path: '/manage',
    component: Manage
  },
  {
    path: '/user',
    component: User
  },
  {
    path: '/agentApply',
    component: agentApply
  },
  {
    path: '/contract',
    component: contract
  },
  {
    path: '/depChange',
    component: depChange
  },
  {
    path: '/depAdd',
    component: depAdd
  },
  {
    path: '/depAgentApply',
    component: depAgentApply
  },
  {
    path: '/coChange',
    component: coChange
  },
  {
    path: '/coAdd',
    component: coAdd
  },
  {
    path: '/coContract',
    component: coContract
  },
  {
    path: '/coAgentApply',
    component: coAgentApply
  },
  {
    path: '/adminLogin',
    component: adminLogin
  }
]

const router = new VueRouter({
  routes
})

export default router
